﻿using SRB.Tg.Model.Member.WordDocument;
using System;

namespace ExportDocument
{
    public class ExportDocument
    {
        public static string DrawingCover(string bridgeId, string _appPath = "")
        {
            string bridge_type = "";
            ProjectDocument P1 = new ProjectDocument(bridgeId, _appPath, out bridge_type);
            return P1.DrawingCoverDocument(bridge_type,_appPath + "\\DesignDocument\\封面.docx");
        }
        public static string DrawingCatalog(string bridgeId, string _appPath = "")
        {
            string bridge_type = "";
            ProjectDocument P1 = new ProjectDocument(bridgeId, _appPath, out bridge_type);
            return P1.DrawingCatalogDocument(_appPath + "\\DesignDocument\\目录.docx");
        }
        public static string DrawingDescriptionDesign(string bridgeId, string _appPath = "")
        {
            string bridge_type = "";
            ProjectDocument P1 = new ProjectDocument(bridgeId, _appPath, out bridge_type);
            if (bridge_type == "5")
            {
                return P1.DrawingPortableDescriptionDesignDocument(_appPath + "\\DesignDocument\\设计说明.docx");
            }
            else
            {
                return P1.DrawingDescriptionDesignDocument(_appPath + "\\DesignDocument\\设计说明.docx");
            }
        }

    }
}
